package com.grape.grapeboot.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
 * 描述:IndexServet 测试servlet
 * @author: myx
 * @date: 2019/7/8 0008
 * Copyright © 2019-grape. All rights reserved.
 */
public class IndexServet extends HttpServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		resp.getWriter().print("tomcat-grapeboot");
	}
}